#include "sensorsapi.h"
#include "sensors.h"

SensorsAPI::SensorsAPI()
{
	m_sensors = new Sensors();
}

void SensorsAPI::setEnvironment(QMainWindow* parentWindow, QWebFrame* webFrame)
{
	m_sensors->setEnvironment(parentWindow, webFrame);
}

QString SensorsAPI::jsObjectName()
{
    return "sensors";
}

QObject *SensorsAPI::jsObjectInstance()
{
    return m_sensors;
}

QString SensorsAPI::jsFileName()
{
    return "sensors.js";
}

Q_EXPORT_PLUGIN2(sensorsapi,SensorsAPI)
